<?php $this->renderFile(Yii::app()->basePath . "/views/store/header.php",array('salepoint' => $salepoint)); ?>

<div class="item-row">
    <div class="item-left-img">
        <?php if (isset($_GET['ii'])) {
            $id_item = $_GET['ii'];
        } else {
            $id_item = 0;
        }
?>
        <div class="bx-wrapper" style="max-width: 100%;">

            <div class="bx-viewport" style="width: 100%; overflow: hidden; position: relative; height: 383px;">
        <div class="bxslider">
            <a href="../../files/<?php echo $items[$id_item]['LinkImage']?>" data-lightbox="image"><img src="<?php echo Yii::app()->baseUrl."/files/".$items[$id_item]['LinkImage']?>"/></a>            
        </div>
        </div>
        </div>
        <div id="bx-pager">
            <?php $list_image = json_decode($items[$id_item]['list_image'])?>
            <?php foreach ($list_image as $key => $i): ?>
            <a href="../../files/<?php echo $i?>" data-lightbox="image-<?php echo $key?>"><img src="<?php echo Yii::app()->baseUrl ."/files/". $i ?>" /></a>
            <?php endforeach; ?>
        </div>

    </div>	
    <div class="item-right-content">
        <h3 class="item-title"><?php echo $items[$id_item]['NameItem'] ?></h3>
        <?php // if ($items[$id_item]['Price'] != ''): ?>
            <p class="item-price" style="padding-bottom: 15px; border-bottom: 1px solid #D0D0D0;"><?php echo $items[$id_item]['Price'] ?> <?php echo $items[$id_item]['Unit'] ?></p>
        <?php // endif; ?>
        <h4>FEATURES:</h4>
        <?php echo $items[$id_item]['Description'] ?>
        

        <h4>DISCOUNT:</h4>
        <p><?php echo $items[$id_item]['Discount'] ?></p>
    </div>        
</div>
<!--<script>
    $(document).ready(function(){
        $('.bxslider').bxSlider({pagerCustom: '#bx-pager'});
    });
</script>-->

<?php $this->renderFile(Yii::app()->basePath . "/views/store/footer.php"); ?>